<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-on</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
         <!-- <button v-on:click="add">点我</button>
         <input type="text" v-on:keyup.13="add"> -->
         <button @click="add">点我</button>
    </div>
    <script>
    var vm=new Vue({
        el:"#app",
        data:{
            msg:"<h1>软谋教育欢迎你！</h1>"
        },
        methods: {
            add(){
                alert("aaa");
            }
        },
    });
    </script>
</body>
</html>